// 所有的api接口进行统一的管理
import requests from "../request/request";

export function login(loginInfo) {
    return requests({
        method: 'post',
        url: '/user/login',
        data: {
            userName: loginInfo.username,
            password: loginInfo.password
        }
    });
}


export function getUserInfo() {
    return requests({
        method: 'get',
        url: '/user/info'
    });
}
// export const login = (loginVO) => requests({
//     url: '/user/login',
//     method: 'post',
//     data: {
//         'username':loginVO.username,
//         'password':loginVO.password

//     }
// })